package com.inetools.gwetons.logging.client;

import com.google.gwt.inject.client.AbstractGinModule;
import com.google.inject.Provider;
import com.google.inject.Singleton;
import com.inetools.gwetons.logging.shared.LoggerInitializerForTest;

public class LoggerInitializerForTestGinModule extends AbstractGinModule {

	@Override
	protected void configure() {
		bind( LoggerInitializerForTest.class)
		.toProvider( LoggerInitializerProviderForTest.class).in( Singleton.class);
	}

	static class LoggerInitializerProviderForTest implements Provider<LoggerInitializerForTest> {
		@Override
		public LoggerInitializerForTest get() {
			return LoggerInitializerForTestAccessor.getLoggerInitializerForTestInstance();
		}
	}
}
